<template>
  <div class="user">
    <div class="wrapper">
      <h1 class="title">用户中心</h1>

      <nav>
        <RouterLink to="/info">个人信息</RouterLink>
        <RouterLink to="/setting">个人设置</RouterLink>
      </nav>
    </div>

    <router-view></router-view>
  </div>
</template>

<script setup>

</script>

<style scoped>
.user{
  margin-top: 30px;
}

nav {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
}

nav a.router-link-exact-active {
  color: lightseagreen;
}

nav a.router-link-exact-active:hover {
  background-color: transparent;
}

nav a {
  display: inline-block;
  padding: 0 1rem;
  border-left: 1px solid rgba(60, 60, 60, 0.12);
}

nav a:first-of-type {
  border: 0;
}
.title{
  text-align: center;
}
</style>